﻿package mortal.game.net.command.mail
{
    import Framework.MQ.*;
    import Message.Game.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class MailNoticeCommand extends BroadCastCall
    {

        public function MailNoticeCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_3:int = 0;
            super.call(param1);
            var _loc_2:* = param1.messageBase as SMailNotice;
            if (_loc_2)
            {
                Cache.instance.mail.mailNotice = true;
                _loc_3 = Cache.instance.role.entityInfo.level;
                if (_loc_3 >= 15)
                {
                    NetDispatcher.dispatchCmd(ServerCommand.MailNotice, null);
                }
            }
            return;
        }// end function

    }
}
